﻿
using Myotragus.Data.Metadata;
using NUnit.Framework;

namespace Myotragus.Data.Tests.Tests.Metadata
{
	[TestFixture]
	public class MetadataEntityMappingFixtures
	{
		[Test]
		public void Start()
		{
			var mapping = new MetadataEntityMapping();
			var type = typeof(IEntityTestCase);

			Assert.AreEqual("Id", mapping.GetPrimaryKey(type).ColumnName);
			Assert.AreEqual("Table", mapping.GetEntityTable(type));
			Assert.AreEqual("generator", mapping.GetPrimaryKey(type).Generator);
		}
	}
}